package com.ruoyi.pg.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 附件管理对象 pg_attachment
 * 
 * @author ruoyi
 * @date 2025-06-07
 */
public class Attachment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long attachId;

    /** 文件名 */
    @Excel(name = "文件编号")
    private String attachCode;

    /** 所属指标 */
    @Excel(name = "所属指标")
    private Long indicatorId;

    /** 所属指标 */
    @Excel(name = "所属指标")
    private Long teacherId;

    /** 文件名 */
    @Excel(name = "文件名")
    private String fileName;

    /** 存储路径 */
    @Excel(name = "存储路径")
    private String filePath;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private Long fileSize;

    /** 文件类型 */
    @Excel(name = "文件类型")
    private String fileType;

    /** 排序编号 */
    @Excel(name = "排序编号")
    private Integer orderNum;

    public void setAttachId(Long attachId) 
    {
        this.attachId = attachId;
    }

    public Long getAttachId() 
    {
        return attachId;
    }

    public void setIndicatorId(Long indicatorId) 
    {
        this.indicatorId = indicatorId;
    }

    public Long getIndicatorId() 
    {
        return indicatorId;
    }

    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }

    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }

    public void setFileSize(Long fileSize) 
    {
        this.fileSize = fileSize;
    }

    public Long getFileSize() 
    {
        return fileSize;
    }

    public void setFileType(String fileType) 
    {
        this.fileType = fileType;
    }

    public String getFileType() 
    {
        return fileType;
    }

    public String getAttachCode() {
        return attachCode;
    }

    public void setAttachCode(String attachCode) {
        this.attachCode = attachCode;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Long getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Long teacherId) {
        this.teacherId = teacherId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("attachId", getAttachId())
            .append("indicatorId", getIndicatorId())
            .append("fileName", getFileName())
            .append("filePath", getFilePath())
            .append("fileSize", getFileSize())
            .append("fileType", getFileType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
